package com.sysiti.sybiz.springcloud.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sysiti.sybiz.springcloud.feign.service.ClientProxy;

@RestController
public class HiController {
	
	@Autowired
	private ClientProxy px;
	
	@RequestMapping(value = "hi", method = RequestMethod.GET)
	public String sayHi(){
		return px.sayHiProxy();
	}
	
	@RequestMapping(value = "/hello")
	public String hello(){
		return "hello";
	}
}
